<?php
/* 
* [***********************]
* @author: mazhenyu[houdunwangmzy@163.com]
* @Date:   2014-07-11 21:57:54
* @Last Modified time: 2014-07-11 21:58:13
*/
class PosControl extends CommonControl{
	public function index(){
		$data = K('PosInfoView')->get_all();
		// p($data);exit;
		$page = $data['page'];
		unset($data['page']);
		$this->assign('page',$page);
		
		$this->assign('data',$data);
		$this->display();
	}

	public function verify_on()
	{
		k('ComPos')->change_verify(array('cpid'=>Q('get.cpid', 0, 'intval')),2);
		$this->success('审核通过');
	}


	public function verify_off(){
		k('ComPos')->change_verify(array('cpid'=>Q('get.cpid', 0, 'intval')),3);
		$this->success('取消成功');
	}
}
?>
